-- GENERATED SPELL FOR [Mana Surge] --


function spell0_6550(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6550', 3000, 1)
end

function spell1_6550(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(11824,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6550', 0, 1)
end

function Sorts_6550(pUnit, Event)
local choix_sorts_6550 = math.random(0, 1)
if choix_sorts_6550 == 0 then
pUnit:RegisterEvent('spell0_6550', 1, 1)
end
if choix_sorts_6550 == 1 then
pUnit:RegisterEvent('spell1_6550', 1, 1)
end
end

function mob6550_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6550', math.random(1500, 3000), 1)
end

function mob6550_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6550_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6550_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6550, 1, 'mob6550_Action')
RegisterUnitEvent(6550, 2, 'mob6550_Leave')
RegisterUnitEvent(6550, 3, 'mob6550_Kill')
RegisterUnitEvent(6550, 4, 'mob6550_Die')
